Optimal. Leaf size=159 \[ -\frac {i a^{5/2} c^{3/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c-i c \tan (e+f x)}}\right )}{f}+\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 159, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {3523, 49, 38, 63, 217, 203} \[ -\frac {i a^{5/2} c^{3/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c-i c \tan (e+f x)}}\right )}{f}+\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 38
Rule 49
Rule 63
Rule 203
Rule 217
Rule 3523
Rubi steps
\begin {align*} \int (a+i a \tan (e+f x))^{5/2} (c-i c \tan (e+f x))^{3/2} \, dx &=\frac {(a c) \operatorname {Subst}\left (\int (a+i a x)^{3/2} \sqrt {c-i c x} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f}+\frac {\left (a^2 c\right ) \operatorname {Subst}\left (\int \sqrt {a+i a x} \sqrt {c-i c x} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f}+\frac {\left (a^3 c^2\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+i a x} \sqrt {c-i c x}} \, dx,x,\tan (e+f x)\right )}{2 f}\\ &=\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f}-\frac {\left (i a^2 c^2\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {2 c-\frac {c x^2}{a}}} \, dx,x,\sqrt {a+i a \tan (e+f x)}\right )}{f}\\ &=\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f}-\frac {\left (i a^2 c^2\right ) \operatorname {Subst}\left (\int \frac {1}{1+\frac {c x^2}{a}} \, dx,x,\frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c-i c \tan (e+f x)}}\right )}{f}\\ &=-\frac {i a^{5/2} c^{3/2} \tan ^{-1}\left (\frac {\sqrt {c} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c-i c \tan (e+f x)}}\right )}{f}+\frac {a^2 c \tan (e+f x) \sqrt {a+i a \tan (e+f x)} \sqrt {c-i c \tan (e+f x)}}{2 f}+\frac {i a (a+i a \tan (e+f x))^{3/2} (c-i c \tan (e+f x))^{3/2}}{3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.83, size = 101, normalized size = 0.64 \[ -\frac {a^2 c^2 (\tan (e+f x)+i) \sec ^2(e+f x) \sqrt {a+i a \tan (e+f x)} \left (3 i \sin (2 (e+f x))+12 \cos ^3(e+f x) \tan ^{-1}\left (e^{i (e+f x)}\right )-4\right )}{12 f \sqrt {c-i c \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.50, size = 428, normalized size = 2.69 \[ -\frac {3 \, \sqrt {\frac {a^{5} c^{3}}{f^{2}}} {\left (f e^{\left (4 i \, f x + 4 i \, e\right )} + 2 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )} \log \left (\frac {8 \, {\left (a^{2} c e^{\left (3 i \, f x + 3 i \, e\right )} + a^{2} c e^{\left (i \, f x + i \, e\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} + \sqrt {\frac {a^{5} c^{3}}{f^{2}}} {\left (4 i \, f e^{\left (2 i \, f x + 2 i \, e\right )} - 4 i \, f\right )}}{a^{2} c e^{\left (2 i \, f x + 2 i \, e\right )} + a^{2} c}\right ) - 3 \, \sqrt {\frac {a^{5} c^{3}}{f^{2}}} {\left (f e^{\left (4 i \, f x + 4 i \, e\right )} + 2 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )} \log \left (\frac {8 \, {\left (a^{2} c e^{\left (3 i \, f x + 3 i \, e\right )} + a^{2} c e^{\left (i \, f x + i \, e\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} + \sqrt {\frac {a^{5} c^{3}}{f^{2}}} {\left (-4 i \, f e^{\left (2 i \, f x + 2 i \, e\right )} + 4 i \, f\right )}}{a^{2} c e^{\left (2 i \, f x + 2 i \, e\right )} + a^{2} c}\right ) - 2 \, {\left (-6 i \, a^{2} c e^{\left (5 i \, f x + 5 i \, e\right )} + 16 i \, a^{2} c e^{\left (3 i \, f x + 3 i \, e\right )} + 6 i \, a^{2} c e^{\left (i \, f x + i \, e\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{12 \, {\left (f e^{\left (4 i \, f x + 4 i \, e\right )} + 2 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.24, size = 186, normalized size = 1.17 \[ \frac {\sqrt {a \left (1+i \tan \left (f x +e \right )\right )}\, \sqrt {-c \left (-1+i \tan \left (f x +e \right )\right )}\, a^{2} c \left (2 i \left (\tan ^{2}\left (f x +e \right )\right ) \sqrt {c a \left (1+\tan ^{2}\left (f x +e \right )\right )}\, \sqrt {c a}+2 i \sqrt {c a \left (1+\tan ^{2}\left (f x +e \right )\right )}\, \sqrt {c a}+3 a c \ln \left (\frac {c a \tan \left (f x +e \right )+\sqrt {c a \left (1+\tan ^{2}\left (f x +e \right )\right )}\, \sqrt {c a}}{\sqrt {c a}}\right )+3 \tan \left (f x +e \right ) \sqrt {c a \left (1+\tan ^{2}\left (f x +e \right )\right )}\, \sqrt {c a}\right )}{6 f \sqrt {c a \left (1+\tan ^{2}\left (f x +e \right )\right )}\, \sqrt {c a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.20, size = 890, normalized size = 5.60 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{5/2}\,{\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________